home *** CD-ROM | disk | FTP | other *** search
/ X User Tools / X User Tools (O'Reilly and Associates)(1994).ISO / sources / cbzone / cbzone.z / cbzone.tar / Makefile.orig < prev    next >
Makefile  |  1991-01-16  |  10KB  |  359 lines

  1. # Makefile generated by imake - do not edit!
  2. # $XConsortium: imake.c,v 1.51 89/12/12 12:37:30 jim Exp $
  3. #
  4. # The cpp used on this machine replaces all newlines and multiple tabs and
  5. # spaces in a macro expansion with a single space.  Imake tries to compensate
  6. # for this, but is not always successful.
  7. #
  8.  
  9. ###########################################################################
  10. # Makefile generated from "Imake.tmpl" and </tmp/IIf.a16286>
  11. # $XConsortium: Imake.tmpl,v 1.77 89/12/18 17:01:37 jim Exp $
  12. #
  13. # Platform-specific parameters may be set in the appropriate .cf
  14. # configuration files.  Site-wide parameters may be set in the file
  15. # site.def.  Full rebuilds are recommended if any parameters are changed.
  16. #
  17. # If your C preprocessor doesn't define any unique symbols, you'll need
  18. # to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
  19. # "make Makefile", "make Makefiles", or "make World").
  20. #
  21. # If you absolutely can't get imake to work, you'll need to set the
  22. # variables at the top of each Makefile as well as the dependencies at the
  23. # bottom (makedepend will do this automatically).
  24. #
  25.  
  26. ###########################################################################
  27. # platform-specific configuration parameters - edit sun.cf to change
  28.  
  29. # platform:  $XConsortium: sun.cf,v 1.38 89/12/23 16:10:10 jim Exp $
  30. # operating system:  SunOS 4.0.3
  31.  
  32. ###########################################################################
  33. # site-specific configuration parameters - edit site.def to change
  34.  
  35. # site:  $XConsortium: site.def,v 1.21 89/12/06 11:46:50 jim Exp $
  36.  
  37.             SHELL = /bin/sh
  38.  
  39.               TOP = .
  40.       CURRENT_DIR = .
  41.  
  42.                AR = ar cq
  43.   BOOTSTRAPCFLAGS =
  44.                CC = gcc
  45.  
  46.          COMPRESS = compress
  47.               CPP = /lib/cpp $(STD_CPP_DEFINES)
  48.     PREPROCESSCMD = cc -E $(STD_CPP_DEFINES)
  49.           INSTALL = install
  50.                LD = ld
  51.              LINT = lint
  52.       LINTLIBFLAG = -C
  53.          LINTOPTS = -axz
  54.                LN = ln -s
  55.              MAKE = make
  56.                MV = mv
  57.                CP = cp
  58.            RANLIB = ranlib
  59.   RANLIBINSTFLAGS =
  60.                RM = rm -f
  61.      STD_INCLUDES =
  62.   STD_CPP_DEFINES =
  63.       STD_DEFINES =
  64.  EXTRA_LOAD_FLAGS =
  65.   EXTRA_LIBRARIES =
  66.              TAGS = ctags
  67.  
  68.     SHAREDCODEDEF = -DSHAREDCODE
  69.          SHLIBDEF = -DSUNSHLIB
  70.  
  71.     PROTO_DEFINES =
  72.  
  73.      INSTPGMFLAGS =
  74.  
  75.      INSTBINFLAGS = -m 0755 -o misc -g misc $(FROMDIRLIST_$(FROMSTAGE))
  76.      INSTUIDFLAGS = -m 0755 -o misc -g misc -s $(FROMDIRLIST_$(FROMSTAGE))
  77.      INSTLIBFLAGS = -m 0644 -o misc -g misc $(FROMDIRLIST_$(FROMSTAGE))
  78.      INSTINCFLAGS = -m 0444 -o misc -g misc $(FROMDIRLIST_$(FROMSTAGE))
  79.      INSTMANFLAGS = -m 0444 -o misc -g misc $(FROMDIRLIST_$(FROMSTAGE))
  80.      INSTDATFLAGS = -m 0444 -o misc -g misc $(FROMDIRLIST_$(FROMSTAGE))
  81.     INSTKMEMFLAGS = -m 0755 -o misc -g misc -s $(FROMDIRLIST_$(FROMSTAGE))
  82.  
  83.           DESTDIR = /usr/misc/.X11
  84.  
  85.      TOP_INCLUDES = -I$(INCROOT)
  86.  
  87.       CDEBUGFLAGS = -g
  88.         CCOPTIONS =
  89.       COMPATFLAGS =
  90.  
  91.       ALLINCLUDES = $(STD_INCLUDES) $(TOP_INCLUDES) $(INCLUDES) $(EXTRA_INCLUDES)
  92.        ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(PROTO_DEFINES) $(DEFINES) $(COMPATFLAGS)
  93.            CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
  94.         LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
  95.            LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  96.         LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS)
  97.    LDCOMBINEFLAGS = -X -r
  98.  
  99.         MACROFILE = sun.cf
  100.            RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut
  101.  
  102.     IMAKE_DEFINES =
  103.  
  104.          IRULESRC = $(CONFIGDIR)
  105.         IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)
  106.  
  107.      ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules \
  108.             $(IRULESRC)/Project.tmpl $(IRULESRC)/site.def \
  109.             $(IRULESRC)/$(MACROFILE) $(EXTRA_ICONFIGFILES)
  110.  
  111. ###########################################################################
  112. # X Window System Build Parameters
  113. # $XConsortium: Project.tmpl,v 1.63 89/12/18 16:46:44 jim Exp $
  114.  
  115. ###########################################################################
  116. # X Window System make variables; this need to be coordinated with rules
  117. # $XConsortium: Project.tmpl,v 1.63 89/12/18 16:46:44 jim Exp $
  118.  
  119.           PATHSEP = /
  120.         USRLIBDIR = $(DESTDIR)/lib
  121.            BINDIR = $(DESTDIR)/bin
  122.           INCROOT = $(DESTDIR)/include
  123.      BUILDINCROOT = $(TOP)
  124.       BUILDINCDIR = $(BUILDINCROOT)/X11
  125.       BUILDINCTOP = ..
  126.            INCDIR = $(INCROOT)/X11
  127.            ADMDIR = $(DESTDIR)/usr/adm
  128.            LIBDIR = $(DESTDIR)/lib
  129.         CONFIGDIR = $(DESTDIR)/config
  130.        LINTLIBDIR = $(DESTDIR)/lib/lint
  131.  
  132.           FONTDIR = $(DESTDIR)/lib/fonts
  133.          XINITDIR = $(LIBDIR)/xinit
  134.            XDMDIR = $(LIBDIR)/xdm
  135.            AWMDIR = $(LIBDIR)/awm
  136.            TWMDIR = $(LIBDIR)/twm
  137.            GWMDIR = $(LIBDIR)/gwm
  138.           MANPATH = $(DESTDIR)/man
  139.     MANSOURCEPATH = $(MANPATH)/man
  140.            MANDIR = $(MANSOURCEPATH)1
  141.         LIBMANDIR = $(MANSOURCEPATH)3
  142.       XAPPLOADDIR = $(LIBDIR)/app-defaults
  143.  
  144.         SOXLIBREV = 4.2
  145.           SOXTREV = 4.0
  146.          SOXAWREV = 4.0
  147.         SOOLDXREV = 4.0
  148.          SOXMUREV = 4.0
  149.         SOXEXTREV = 4.0
  150.  
  151.        FONTCFLAGS = -t
  152.  
  153.      INSTAPPFLAGS = $(INSTDATFLAGS)
  154.  
  155.             IMAKE = imake
  156.            DEPEND = makedepend
  157.               RGB = rgb
  158.             FONTC = bdftosnf
  159.         MKFONTDIR = mkfontdir
  160.         MKDIRHIER = /bin/sh $(BINDIR)/mkdirhier.sh
  161.  
  162.         CONFIGSRC = $(TOP)/config
  163.         CLIENTSRC = $(TOP)/clients
  164.           DEMOSRC = $(TOP)/demos
  165.            LIBSRC = $(TOP)/lib
  166.           FONTSRC = $(TOP)/fonts
  167.        INCLUDESRC = $(TOP)/X11
  168.         SERVERSRC = $(TOP)/server
  169.           UTILSRC = $(TOP)/util
  170.         SCRIPTSRC = $(UTILSRC)/scripts
  171.        EXAMPLESRC = $(TOP)/examples
  172.        CONTRIBSRC = $(TOP)/../contrib
  173.            DOCSRC = $(TOP)/doc
  174.            RGBSRC = $(TOP)/rgb
  175.         DEPENDSRC = $(UTILSRC)/makedepend
  176.          IMAKESRC = $(CONFIGSRC)
  177.          XAUTHSRC = $(LIBSRC)/Xau
  178.           XLIBSRC = $(LIBSRC)/X
  179.            XMUSRC = $(LIBSRC)/Xmu
  180.        TOOLKITSRC = $(LIBSRC)/Xt
  181.        AWIDGETSRC = $(LIBSRC)/Xaw
  182.        OLDXLIBSRC = $(LIBSRC)/oldX
  183.       XDMCPLIBSRC = $(LIBSRC)/Xdmcp
  184.       BDFTOSNFSRC = $(FONTSRC)/bdftosnf
  185.      MKFONTDIRSRC = $(FONTSRC)/mkfontdir
  186.      EXTENSIONSRC = $(TOP)/extensions
  187.  
  188.   DEPEXTENSIONLIB = $(USRLIBDIR)/libXext.a
  189.      EXTENSIONLIB =  -lXext
  190.  
  191.           DEPXLIB = $(DEPEXTENSIONLIB)
  192.              XLIB = $(EXTENSIONLIB) -lX11
  193.  
  194.       DEPXAUTHLIB = $(USRLIBDIR)/libXau.a
  195.          XAUTHLIB =  -lXau
  196.  
  197.         DEPXMULIB =
  198.            XMULIB = -lXmu
  199.  
  200.        DEPOLDXLIB =
  201.           OLDXLIB = -loldX
  202.  
  203.       DEPXTOOLLIB =
  204.          XTOOLLIB = -lXt
  205.  
  206.         DEPXAWLIB =
  207.            XAWLIB = -lXaw
  208.  
  209.  LINTEXTENSIONLIB = $(USRLIBDIR)/llib-lXext.ln
  210.          LINTXLIB = $(USRLIBDIR)/llib-lX11.ln
  211.           LINTXMU = $(USRLIBDIR)/llib-lXmu.ln
  212.         LINTXTOOL = $(USRLIBDIR)/llib-lXt.ln
  213.           LINTXAW = $(USRLIBDIR)/llib-lXaw.ln
  214.  
  215.           DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  216.  
  217.          DEPLIBS1 = $(DEPLIBS)
  218.          DEPLIBS2 = $(DEPLIBS)
  219.          DEPLIBS3 = $(DEPLIBS)
  220.  
  221. ###########################################################################
  222. # Imake rules for building libraries, programs, scripts, and data files
  223. # rules:  $XConsortium: Imake.rules,v 1.67 89/12/18 17:14:15 jim Exp $
  224.  
  225. ###########################################################################
  226. # start of Imakefile
  227.  
  228. SRCS =  c_main.c \
  229.         c_move.c \
  230.         c_graphics.c \
  231.         c_scores.c \
  232.         c_gpr.c \
  233.         c_parseopts.c \
  234.         c_draw.c \
  235.         c_explode.c
  236.  
  237. OBJS =  c_main.o \
  238.         c_move.o \
  239.         c_graphics.o \
  240.         c_scores.o \
  241.         c_gpr.o \
  242.         c_parseopts.o \
  243.         c_draw.o \
  244.         c_explode.o
  245.  
  246. HDRS =  c_config.h \
  247.         c_structs.h \
  248.         c_defs.h \
  249.         c_externs.h \
  250.         c_colors.h \
  251.         c_includes.h \
  252.         PatchLevel.h
  253.  
  254. ETCS =  cbzone.help \
  255.         cbzone.motd
  256.  
  257. MISC =  Imakefile \
  258.         Makefile.orig \
  259.         INSTALL \
  260.         ChangeLog \
  261.         bitmaps
  262.  
  263. # in general, these should end in a /
  264. # this is where the binary will go
  265. BINDIR = /usr/mummert/sun4/bin/
  266.  
  267. # this is where the scorefile and helpfile will go
  268. TANKDIR = /afs/cs/user/mummert/lib/games/
  269.  
  270. DEFINES = -DTANKDIR=\"$(TANKDIR)\"
  271.  
  272. LOCAL_LIBRARIES = $(XTOOLLIB) $(XLIB) -lm
  273.  
  274.  PROGRAM = cbzone
  275.  
  276. all:: cbzone
  277.  
  278. cbzone: $(OBJS) $(DEPLIBS)
  279.     $(RM) $@
  280.     $(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS)
  281.  
  282. saber_cbzone:
  283.     #load $(ALLDEFINES) $(SRCS) $(LOCAL_LIBRARIES) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  284.  
  285. osaber_cbzone:
  286.     #load $(ALLDEFINES) $(OBJS) $(LOCAL_LIBRARIES) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  287.  
  288. install:: cbzone
  289.     $(INSTALL) -c $(INSTPGMFLAGS)   cbzone $(BINDIR)
  290.  
  291. install.man:: cbzone.man
  292.     $(INSTALL) -c $(INSTMANFLAGS) cbzone.man $(MANDIR)/cbzone.1
  293.  
  294. depend::
  295.     $(DEPEND) -s "# DO NOT DELETE" -- $(ALLDEFINES) -- $(SRCS)
  296.  
  297. lint:
  298.     $(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIBS)
  299. lint1:
  300.     $(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS)
  301.  
  302. clean::
  303.     $(RM) $(PROGRAM)
  304.  
  305. install:: cbzone.help
  306.     $(INSTALL) -c $(INSTDATFLAGS) cbzone.help $(TANKDIR)
  307.  
  308. install:: cbzone.motd
  309.     $(INSTALL) -c $(INSTDATFLAGS) cbzone.motd $(TANKDIR)
  310.  
  311. tar: cbzone.tar.Z
  312.  
  313. cbzone.tar.Z:  $(SRCS) $(HDRS) $(ETCS) $(MISC)
  314.     rm -rf cbzone.tar cbzone.tar.Z
  315.     tar -cf cbzone.tar $(SRCS) $(HDRS) $(ETCS) $(MISC)
  316.     compress cbzone.tar
  317.  
  318. ###########################################################################
  319. # common rules for all Makefiles - do not edit
  320.  
  321. emptyrule::
  322.  
  323. clean::
  324.     $(RM_CMD) \#*
  325.  
  326. Makefile::
  327.     -@if [ -f Makefile ]; then \
  328.     echo "    $(RM) Makefile.bak; $(MV) Makefile Makefile.bak"; \
  329.     $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
  330.     else exit 0; fi
  331.     $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
  332.  
  333. tags::
  334.     $(TAGS) -w *.[ch]
  335.     $(TAGS) -xw *.[ch] > TAGS
  336.  
  337. saber:
  338.     #load $(ALLDEFINES) $(SRCS)
  339.  
  340. osaber:
  341.     #load $(ALLDEFINES) $(OBJS)
  342.  
  343. ###########################################################################
  344. # empty rules for directories that do not have SUBDIRS - do not edit
  345.  
  346. install::
  347.     @echo "install in $(CURRENT_DIR) done"
  348.  
  349. install.man::
  350.     @echo "install.man in $(CURRENT_DIR) done"
  351.  
  352. Makefiles::
  353.  
  354. includes::
  355.  
  356. ###########################################################################
  357. # dependencies generated by makedepend
  358.  
  359.